<?
require_once "inc.init.php";

// THE OBJ:
$obj = new clientes(); // <---- Change this !!!
$obj-> setDbLink($dbLink);

// GETTING:
if ( !$obj->get($_GET[$obj->_dbIndex] ) )
{
	header("Location: index.php");
	die();
}

include DIR_ADMIN.'/common/inc.header.php';
?>
<script src="<?= $GLOBALS['CONF']['url']['js'] ?>/lib/scriptaculous/scriptaculous.js?load=effects,controls,dragdrop" type="text/javascript" language="javascript" charset="utf-8"></script>
</head>
<body>
    <div class="Path">
        <a href="."><?= $module->name ?></a> &gt;
        <h1><a href="details.php?<?= $obj->_dbIndex ?>=<?= $obj->getID() ?>"><?= $obj->nombre_apellido ?></a></h1>
    </div>
    <div class="tableHeader">
        <strong>Detalles de la Secci&oacute;n</strong>
    </div>
    <table cellspacing="0" class="AbmTable">
        <tr>
            <td width="120" height="13"> Nombre y Apellido:</td>
            <td><?= $obj->nombre_apellido ?></td>
        </tr>
        <tr>
            <td valign="top">Email:</td>
            <td valign="top" class="content"><?= $obj->email ?></td>
        </tr>
        <tr>
            <td valign="top">Telefono:</td>
            <td valign="top" class="content"><?= $obj->telefono ?></td>
        </tr>
        <tr>
            <td valign="top">Celular:</td>
            <td valign="top" class="content"><?= $obj->celular ?></td>
        </tr>
        <tr>
            <td valign="top">Dirección:</td>
            <td valign="top" class="content"><?= $obj->direccion ?></td>
        </tr>
        <tr>
            <td>Centinela:</td>
            <td><span class="ico_<?= $obj->centinela ?>"></span></td>
        </tr>
        <tr>
            <td colspan="2">
                <br>
                <strong>Datos Administrativos</strong>
            </td>
        </tr>
        <tr>
            <td>Activo:</td>
            <td><span class="ico_<?= $obj->active ?>"></span></td>
        </tr>
        <tr>
            <td colspan="2" align="right">
            	<span class="button">
            		<input type="button" value="Editar" name="Editar" onClick="location.href='abm.php?<?= $obj->_dbIndex ?>=<?= $obj->getID() ?>'">
			    </span>
		    </td>
        </tr>
    </table>
    <div class="tableHeader"><strong>Info de sistema </strong></div>
    <table cellspacing="0" class="AbmTable">
        <tr>
            <td width="15%"><?= $module->unit ?> id: </td>
            <td colspan="3"><?= $obj->getID() ?></td>
        </tr>
        <tr>
            <td>Fecha de creaci&oacute;n :</td>
            <td><?= $obj->date_created ?></td>
            <td width="15%">Fecha &uacute;ltimo cambio:</td>
            <td><?= $obj->date_modified ?></td>
        </tr>
        <tr>
            <td>Usuario que cre&oacute;:</td>
            <td><?= $obj->userCreated ?></td>
            <td>Usuario que modific&oacute;:</td>
            <td><?= $obj->userModified ?></td>
        </tr>
    </table>
</body>
</html>
